-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
22 new data source security account #114
22 new data source security account #114
Conversation
…e-security_account
"github.com/netapp/terraform-provider-netapp-ontap/internal/utils" | ||
) | ||
|
||
// TODO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines can be removed.
MarkdownDescription: "SecurityAccount id", | ||
Computed: true, | ||
}, | ||
"owner": schema.SingleNestedAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'owner' should be required in one data source case, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NO.... YES.....
So an account can be SVM specific or cluster specific.
Let me try some test out, my worry here is cluster name might not be known by the user.
"github.com/netapp/terraform-provider-netapp-ontap/internal/utils" | ||
) | ||
|
||
// TODO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lines can be removed
|
||
Required: | ||
|
||
- `name` (String) SecurityAccount owner name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user only provides "name", then it will be multiple records.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there a way around that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question on the single data source: the user needs to provide name and owner info to get the single record. So owner probably needs to be required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also missing the CHANGELOG update
Since cluster user can't give an owner info we can't have it required. |
scripts/acctest.sh
Outdated
#export TF_ACC_NETAPP_USER="admin" | ||
#export TF_ACC_NETAPP_PASS="<password>" | ||
#export TF_ACC_NETAPP_LICENSE="<licensekey>" | ||
export TF_ACC_NETAPP_HOST="10.193.180.108" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that we hard-coded these values?
Please resolve the conflict, then it should be good to go. |
…_account 22 new data source security account
Adds #22